package com.gxa.insurance.mapper;

import com.gxa.insurance.pojo.Refund;
import com.gxa.insurance.pojo.RefundType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RefundMapper {
    List<Refund> selectAllByPage(@Param("page") Integer page, @Param("pageSize") Integer pageSize);

    Integer selectCount();

    List<Refund> selectByStatus(@Param("status") String status,@Param("page") Integer page,@Param("pageSize") Integer pageSize);

    Integer selectCountByStatus();

    void updateIsReturnAndStatus(@Param("returnMoney") Boolean returnMoney,@Param("status") String status,@Param("id")Integer id);

    void updateIsRefuse(@Param("isRefuse") Boolean isRefuse,@Param("id") Integer id);

    void updateReasonAndStatus(@Param("reason") String reason,@Param("status") String status,@Param("id") Integer id);

    List<RefundType> selectAllTypes();
}
